package org.nimi317.web_gis.form.post;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nimi317.web_gis.Enum.RangeEnum;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author thunderobot
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SearchPost extends Page {

    @NotBlank
    private String id;

    @NotNull
    private RangeEnum range;

    @Size(min = 2, max = 2)
    @NotEmpty
    private List<LocalDateTime> timeRange;
}
